package com.eonmind.knowledge.converts;

import com.eonmind.common.provider.entity.knowledge.KnowledgeUploadFile;
import com.eonmind.knowledge.dto.KnowledgeUploadFileDto;
import org.springframework.beans.BeanUtils;

/**
 * @Author: AKang
 * @Description:
 * @CreateTime: 2025-05-29
 */
public class KnowledgeUploadFileConvert {
    public static KnowledgeUploadFile toKnowledgeUploadFile(KnowledgeUploadFileDto.KnowledgeFile knowledgeFile) {
        KnowledgeUploadFile knowledgeUploadFile = new KnowledgeUploadFile();
        BeanUtils.copyProperties(knowledgeFile, knowledgeUploadFile);
        return knowledgeUploadFile;
    }
}
